<!--
 * @Author: Li Zengkun
 * @Date: 2022-09-13 19:25:03
 * @LastEditors: Li Zengkun
 * @LastEditTime: 2022-09-13 21:45:14
 * @Description: 
-->
<template>
  <div class="content">
    <el-card shadow="hover">
      <template #header>
        <span>评论管理</span>
      </template>

      <!-- table -->
      <el-table :data="commentList" style="width: 100%">
        <el-table-column prop="id" label="id" width="40"/>
        <el-table-column prop="user_nickname" label="用户" width="100" />
        <el-table-column prop="article_title" label="文章标题" />
        <el-table-column prop="content" label="评论内容" />
        <el-table-column prop="create_time" label="评论时间" />
        <el-table-column label="操作" width="290">
          <template #default>
            <el-button type="danger" icon="Delete">删除</el-button>
            <el-button type="primary" icon="Edit">编辑</el-button>
            <el-button type="success" icon="CollectionTag">标记</el-button>
          </template>
        </el-table-column>
      </el-table>
    </el-card>
  </div>
</template>
 
<script setup>
import { ref, reactive } from "vue";
import { comment } from "@/api"

let commentList = (await comment.recent()).data

console.log(commentList);
</script>

<style lang='less' scoped>
</style>

